home *** CD-ROM | disk | FTP | other *** search
- Path: engnews1.Eng.Sun.COM!taumet!clamage
- From: "Dmitry M. Potapov" <dima@florin.msk.su>
- Newsgroups: comp.std.c++
- Subject: Q : dynamic_cast<>()
- Date: 21 Mar 1996 23:52:02 GMT
- Organization: DataX/FLORIN, Inc.
- Sender: news-service@kiae.su
- Approved: clamage@eng.sun.com (comp.std.c++)
- Distribution: world
- Message-ID: <199603211714.RAA26760@florin.msk.su>
- Reply-To: dima@florin.msk.su
- NNTP-Posting-Host: taumet.eng.sun.com
- X-Return-Path: kiae![194.87.233.66]!florin.msk.su!dima
- Apparently-To: comp-std-c++@uunet.uu.net
- Content-Length: 311
- X-Lines: 13
- Originator: clamage@taumet
-
- When bad_casting to pointer type,
- dynamic_cast<>() returns NULL.
-
- Is there a standard on good_casting,
- I mean is it normal if dynamic_cast changes pointer,
- and could dynamic_cast<>() be implemented w/o changing
- the pointer if the cast was not bad ?
-
- Thanks in advance,
-
- Potapov Dmitry, dima@florin.msk.su
- --
-
-
-
- [ comp.std.c++ is moderated. To submit articles: try just posting with ]
- [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
- [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
- [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
- [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
-